<template>
  <el-descriptions class="margin-top" title="保养详情" direction="vertical" :column="4" border>
    <el-descriptions-item label="保养名称">{{upkeep.upkeepName}}</el-descriptions-item>
    <el-descriptions-item label="保养内容">{{upkeep.upkeepContent}}</el-descriptions-item>
    <el-descriptions-item label="保养周期" :span="2">{{upkeep.upkeepPeriod}}</el-descriptions-item>
    <el-descriptions-item label="备注">
      <el-tag size="small">公司</el-tag>
    </el-descriptions-item>
    <el-descriptions-item label="联系地址">江苏省苏州市吴中区吴中大道 1188 号</el-descriptions-item>
  </el-descriptions>
</template>

<script>
import {getUpkeep} from "@/api/equipment/upkeep"
export default {

  name: "data",
  data(){
    return{
      upkeep:{}
    }
  },
  created() {
    const upkeepId = this.$route.params && this.$route.params.upkeepId
    this.getData(upkeepId);

  },
  methods:{
    getData(upkeepId){
      getUpkeep(upkeepId).then(response =>{
        // console.log("游客数据",response)
        this.upkeep = response.data

      });
    }
  }
}
</script>

<style scoped>

</style>
